package com.bigdata.model;

import java.util.ArrayList;
import java.util.List;

public class Menu {
    private Integer resId;

    private String resName;

    private Integer parentId;

    private String resKey;

    private String type;

    private String resUrl;

    private Integer level;

    private String icon;

    private Integer ishide;

    private String description;

    private List<Menu> children = new ArrayList<Menu>();

    public Menu(Integer resId, String resName, Integer parentId, String resKey, String type, String resUrl, Integer level, String icon, Integer ishide, String description) {
        this.resId = resId;
        this.resName = resName;
        this.parentId = parentId;
        this.resKey = resKey;
        this.type = type;
        this.resUrl = resUrl;
        this.level = level;
        this.icon = icon;
        this.ishide = ishide;
        this.description = description;
    }

    public Menu() {
        super();
    }

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName == null ? null : resName.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getResKey() {
        return resKey;
    }

    public void setResKey(String resKey) {
        this.resKey = resKey == null ? null : resKey.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getResUrl() {
        return resUrl;
    }

    public void setResUrl(String resUrl) {
        this.resUrl = resUrl == null ? null : resUrl.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public Integer getIshide() {
        return ishide;
    }

    public void setIshide(Integer ishide) {
        this.ishide = ishide;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }
}